interface IOption {
  value: number | string;
  label: string;
}
// 合同状态枚举
export const QA_STATUS = {
  NOANS: 0,
  ANSWERED: 1,
  VIEWED: 2
};
export const QA_STATUS_OPTIONS: Array<IOption> = [
  { value: QA_STATUS.NOANS, label: '未回复' },
  { value: QA_STATUS.ANSWERED, label: '已回复未读' },
  { value: QA_STATUS.VIEWED, label: '已读已回复' }
]
export const SEX_STATUS = {
  MALE: 0,
  FEMALE: 1
};
export const SEX_STATUS_OPTIONS: Array<IOption> = [
  { value: SEX_STATUS.MALE, label: '男' },
  { value: SEX_STATUS.FEMALE, label: '女' }
]
export const ARTICLE_STATUS = {
  POSTED: 0,
  ALLOWED: 1,
  CLOSED: -1
};
export const ARTICLE_TYPE_OPTIONS: Array<IOption> = [
  { value: "术前提醒", label: "术前提醒" },
  { value: "术后贴士", label: "术后贴士" },
  { value: "康复指南", label: "康复指南" },
]
export const ARTICLE_STATUS_OPTIONS: Array<IOption> = [
  { value: ARTICLE_STATUS.POSTED, label: '待审核' },
  { value: ARTICLE_STATUS.ALLOWED, label: '审核通过' },
  { value: ARTICLE_STATUS.CLOSED, label: '未通过' }
];
export const WORKORDER_STATUS = {
  POSTED: 0,
  ANSWERED: 1,
  CLOSED: 2
};

export const WORKORDER_STATUS_OPTIONS: Array<IOption> = [
  { value: WORKORDER_STATUS.POSTED, label: '未答复' },
  { value: WORKORDER_STATUS.ANSWERED, label: '已答复' },
  { value: WORKORDER_STATUS.CLOSED, label: '已关闭' }
];

export const CONTRACT_STATUS = {
  FAIL: 0,
  AUDIT_PENDING: 1,
  EXEC_PENDING: 2,
  EXECUTING: 3,
  FINISH: 4
};

export const CONTRACT_STATUS_OPTIONS: Array<IOption> = [
  { value: CONTRACT_STATUS.FAIL, label: '审核失败' },
  { value: CONTRACT_STATUS.AUDIT_PENDING, label: '待审核' },
  { value: CONTRACT_STATUS.EXEC_PENDING, label: '待履行' },
  { value: CONTRACT_STATUS.EXECUTING, label: '审核成功' },
  { value: CONTRACT_STATUS.FINISH, label: '已完成' }
];

// 合同类型枚举
export const CONTRACT_TYPES = {
  MAIN: 0,
  SUB: 1,
  SUPPLEMENT: 2
};

export const CONTRACT_TYPE_OPTIONS: Array<IOption> = [
  { value: CONTRACT_TYPES.MAIN, label: '主合同' },
  { value: CONTRACT_TYPES.SUB, label: '子合同' },
  { value: CONTRACT_TYPES.SUPPLEMENT, label: '补充合同' }
];

// 合同收付类型枚举
export const CONTRACT_PAYMENT_TYPES = {
  PAYMENT: 0,
  RECIPT: 1
};

// 通知的优先级对应的TAG类型
export const NOTIFICATION_TYPES = {
  low: 'primary',
  middle: 'warning',
  high: 'danger'
};
